/**
 * @param {JSEvent} event
 *
 * @properties={typeid:24,uuid:"2076B0E2-0037-4717-91AD-CD337D804902"}
 */
function doEdit(event){
	
	globals.doEdit(controller.getName());
	
	elements.btn_aceptar.visible = true;
	elements.btn_cancelar.visible = true;
}

/**
 * @param {JSEvent} event
 *
 * @properties={typeid:24,uuid:"0790F026-BED0-4D18-BB62-525EFCDF5B3A"}
 */
function hide_btn_reset_fields(event){
	
	globals.hide_btn_reset_fields(controller.getName());
	
	elements.btn_aceptar.visible = false;
	elements.btn_cancelar.visible = true;
}


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"5518276B-9EA3-4581-860B-8D2F9C4023FE"}
 */
function btn_aceptar(event) {

	globals.saveRecordsFs(foundset);
	controller.getWindow().destroy();
	
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"451E889A-AB7E-463B-9391-454EADF72C76"}
 */
function btn_cancelar(event) {

	globals.cancelEditing();
	controller.getWindow().destroy();
}





